/** @author Chris Howson & Steve Horsman */
class Element
{
	/** Defines the column number of an Element */
    private int col;
    /** Defines the data stored in an Element */
    private double data;
 
    /** Class Constructor: Creates an 'Element' with the given column number and data */
    public Element(int c, double d)
    {
        col = c;
        data = d;
    }
    
    /** Returns the column number of the Element*/
    public int getCol()
    {
        return this.col;
    }
    
    /** Sets the column number of the Element*/
    public void setCol(int c)
    {
        this.col = c;
    }
    
    /** Returns the data contained in the Element*/
    public double getData()
    {
        return this.data;
    }
    
    /** Sets the data field of the Element*/
    public void setData(double c)
    {
        this.data = c;
    }
    
    /** Prints the column number and data of the Element to standard output */
    public String print()
    {
    	String r  = ""+col+":"+data;
        return r;
    }
}
